package com.example.demo.mapper;

import com.example.demo.pojo.Schedule;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface ScheduleMapper {
    Integer  insertScheduleByWorkDateAndStoreId(Integer storeId, Integer staffId,String workDate,String staffSchedule);


    //更新某一天的排班
    Integer updateStaffScheduleByWorkDateAndStoreId(Integer storeId, Integer staffId,String workDate,String staffSchedule);

    /**
     *@Description: 查找某一天某家店铺员工排班信息
     *@Param: [storeId, staffId, workDate]
     *@return:java.util.List<com.example.demo.pojo.Schedule>
     *@Author: Mr.Lin
     *@Date: 2023/5/29 23:37
     */
    List<Schedule> selectStaffScheduleByStoreIdAndStaffIdAndWorkDate(Integer storeId, Integer staffId,String workDate);

    List<Schedule> selectStaffScheduleByStoreIdAndWorkDate(Integer storeId, String workDate);
}
